package com.litepal.instance.model;


import com.litepal.lib.annotation.Column;
import com.litepal.lib.crud.DataSupport;

import java.util.ArrayList;
import java.util.List;

public class Cellphone extends DataSupport
{

	private Long id;

	public String brand;

	private Character inStock;

	protected Double price;

	@Column(unique = true, nullable = false)
	String serial;

	@Column(nullable = true, defaultValue = "0.0.0.0")
	private String mac;

	@Column(ignore = true)
	private String uuid;

	private List<WeiboMessage> messages = new ArrayList<>();

	public Long getId()
	{
		return id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public String getBrand()
	{
		return brand;
	}

	public void setBrand(String brand)
	{
		this.brand = brand;
	}

	public Character getInStock()
	{
		return inStock;
	}

	public void setInStock(Character inStock)
	{
		this.inStock = inStock;
	}

	public Double getPrice()
	{
		return price;
	}

	public void setPrice(Double price)
	{
		this.price = price;
	}

	public String getSerial()
	{
		return serial;
	}

	public void setSerial(String serial)
	{
		this.serial = serial;
	}

	public String getMac()
	{
		return mac;
	}

	public void setMac(String mac)
	{
		this.mac = mac;
	}

	public String getUuid()
	{
		return uuid;
	}

	public void setUuid(String uuid)
	{
		this.uuid = uuid;
	}

	public List<WeiboMessage> getMessages()
	{
		return messages;
	}

	public void setMessages(List<WeiboMessage> messages)
	{
		this.messages = messages;
	}
}